package com.zhongshengnetwork.rightbe.common.Filter;

public class FilterColorMatrix {

    //1、LOMO
    public static float[] colormatrix_lomo = {
            1.7f,  0.1f, 0.1f, 0, -73.1f,
            0,  1.7f, 0.1f, 0, -73.1f,
            0,  0.1f, 1.6f, 0, -73.1f,
            0,  0, 0, 1.0f, 0 };

    // 2、黑白
    public static float[] colormatrix_heibai = {
            0.8f,  1.6f, 0.2f, 0, -163.9f,
            0.8f,  1.6f, 0.2f, 0, -163.9f,
            0.8f,  1.6f, 0.2f, 0, -163.9f,
            0,  0, 0, 1.0f, 0 };

    //3、复古
    public static float[] colormatrix_huajiu = {
            0.2f,0.5f, 0.1f, 0, 40.8f,
            0.2f, 0.5f, 0.1f, 0, 40.8f,
            0.2f,0.5f, 0.1f, 0, 40.8f,
            0, 0, 0, 1, 0 };

    // 4、哥特
    public static float[] colormatrix_gete =  {
            1.9f,-0.3f, -0.2f, 0,-87.0f,
            -0.2f, 1.7f, -0.1f, 0, -87.0f,
            -0.1f,-0.6f, 2.0f, 0, -87.0f,
            0, 0, 0, 1.0f, 0 };

    // 5、锐化
    public static float[] colormatrix_ruise = {
            4.8f,-1.0f, -0.1f, 0,-388.4f,
            -0.5f,4.4f, -0.1f, 0,-388.4f,
            -0.5f,-1.0f, 5.2f, 0,-388.4f,
            0, 0, 0, 1.0f, 0 };

    // 6、淡雅
    public static float[] colormatrix_danya = {
            0.6f,0.3f, 0.1f, 0,73.3f,
            0.2f,0.7f, 0.1f, 0,73.3f,
            0.2f,0.3f, 0.4f, 0,73.3f,
            0, 0, 0, 1.0f, 0 };

    // 7、酒红
   public static float[] colormatrix_jiuhong = {
            1.2f,0.0f, 0.0f, 0.0f,0.0f,
            0.0f,0.9f, 0.0f, 0.0f,0.0f,
            0.0f,0.0f, 0.8f, 0.0f,0.0f,
            0, 0, 0, 1.0f, 0 };

    // 8、清宁
    public static float[] colormatrix_qingning = {
            0.9f, 0, 0, 0, 0,
            0, 1.1f,0, 0, 0,
            0, 0, 0.9f, 0, 0,
            0, 0, 0, 1.0f, 0 };

    // 9、浪漫
    public static float[] colormatrix_langman = {
            0.9f, 0, 0, 0, 63.0f,
            0, 0.9f,0, 0, 63.0f,
            0, 0, 0.9f, 0, 63.0f,
            0, 0, 0, 1.0f, 0 };

    // 10、光晕
    public static float[] colormatrix_guangyun = {
            0.9f, 0, 0,  0, 64.9f,
            0, 0.9f,0,  0, 64.9f,
            0, 0, 0.9f,  0, 64.9f,
            0, 0, 0, 1.0f, 0 };

    // 11、蓝调
    public static float[] colormatrix_landiao = {
            2.1f, -1.4f, 0.6f, 0.0f, -31.0f,
            -0.3f, 2.0f, -0.3f, 0.0f, -31.0f,
            -1.1f, -0.2f, 2.6f, 0.0f, -31.0f,
            0.0f, 0.0f, 0.0f, 1.0f, 0.0f
    };

    // 12、梦幻
    public static float[] colormatrix_menghuan = {
            0.8f, 0.3f, 0.1f, 0.0f, 46.5f,
            0.1f, 0.9f, 0.0f, 0.0f, 46.5f,
            0.1f, 0.3f, 0.7f, 0.0f, 46.5f,
            0.0f, 0.0f, 0.0f, 1.0f, 0.0f
    };

    // 13、夜色
    public static float[] colormatrix_yese = {
            1.0f, 0.0f, 0.0f, 0.0f, -66.6f,
            0.0f, 1.1f, 0.0f, 0.0f, -66.6f,
            0.0f, 0.0f, 1.0f, 0.0f, -66.6f,
            0.0f, 0.0f, 0.0f, 1.0f, 0.0f
    };

    public static float[] getColorMatrix(int i){
        switch (i){
            case 0:
                return colormatrix_lomo;

            case 1:
                return colormatrix_heibai;

            case 2:
                return colormatrix_huajiu;

            case 3:
                return colormatrix_gete;

            case 4:
                return colormatrix_ruise;

            case 5:
                return colormatrix_danya;

            case 6:
                return colormatrix_jiuhong;

            case 7:
                return colormatrix_qingning;

            case 8:
                return colormatrix_langman;

            case 9:
                return colormatrix_guangyun;

            case 10:
                return colormatrix_landiao;

            case 11:
                return colormatrix_menghuan;

            case 12:
                return colormatrix_yese;

                default:
                    return colormatrix_lomo;
        }
    }

}
